package com.wanli.mapper;

import com.wanli.domain.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Byterain
 * @since 2023-12-06
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    //自定义查询：根据用户编号，查询该用户所能操作的菜单id( 集合 )
    public List<Long> getNavMenuIds(Long userId);

    //自定义查询：通过menuId菜单编号，查询与该菜单权限相关的用户信息
    public List<User> listByMenuId(Long menuId);
}
